package com.demo.user.dto;

import com.demo.user.util.page.PageParam;
import com.demo.user.validation.NotNullIfAnotherFieldHasValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author: xxh
 * @date: 2022/7/25
 **/
@Data
@ApiModel(value = "用户分页请求数据")
public class UserPageParamDto extends PageParam {
    /**
     * 姓名
     */
    @ApiModelProperty(value = "姓名")
    @NotBlank(message = "名字不能为空")
    private String name;
    @ApiModelProperty(value = "账号")
    private String username;
    @NotNull(message = "状态不能为空")
    @ApiModelProperty(value = "状态0正常1禁用")
    private Integer status;
//    @ApiModelProperty(hidden = true)
    private Integer sid;
}
